package cn.xiaoniu.day05.bean;

import java.io.Serializable;

public class User implements Serializable{
	int id;
	String name;
	String passwd;
	int age;
	String pnum;
	
	
	public void set(int id, String name, String passwd, int age, String pnum) {
		this.id = id;
		this.name = name;
		this.passwd = passwd;
		this.age = age;
		this.pnum = pnum;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getPnum() {
		return pnum;
	}
	public void setPnum(String pnum) {
		this.pnum = pnum;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", passwd=" + passwd + ", age=" + age + ", pnum=" + pnum + "]";
	}
}
